/**
 * 公益组织相关API
 */

import axios from 'axios'

const baseurl = '/giraffe/organ'

export const addOrgan = (data) => axios.post(
  `${baseurl}/addOrgan`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)

export const changeOrgan = (data) => axios.post(
  `${baseurl}/changOrgan`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)

export const findOrgan = (data) => axios.post(
  `${baseurl}/findOrgan`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)

export const findOrganByName = (data) => axios.post(
  `${baseurl}/findOrganByName`,
  data,
  {headers: {'Content-Type': 'application/json'}}
).then(
  (res) => {
    return res
  }
)
